package com.smedi.ismedi.constructionproject.core.domain.service.impl;

import com.smedi.ismedi.authority.starter.util.AuthorityUtil;
import com.smedi.ismedi.constructionproject.core.domain.aggregatemodel.ProjectApply;
import com.smedi.ismedi.constructionproject.core.domain.repository.ProjectApplyRepository;
import com.smedi.ismedi.constructionproject.core.domain.service.ProjectApplyDomainService;
import com.smedi.ismedi.constructionproject.core.domain.service.ProjectBasicDomainService;
import com.smedi.ismedi.constructionproject.core.port.adapter.service.OrganizationRemoteApiService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @Author: xulinjun
 * @Date: 2021-6-24 15:36
 */
@Slf4j
@Service
@AllArgsConstructor
public class ProjectApplyDomainServiceImpl implements ProjectApplyDomainService {
    private final ProjectApplyRepository projectApplyRepository;


    @Override
    public ProjectApply saveProjectApply(ProjectApply projectApply) {

        return projectApplyRepository.saveProjectApply(projectApply);
    }

    @Override
    public ProjectApply editProjectApply(ProjectApply projectApply) {
        return projectApplyRepository.saveProjectApply(projectApply);
    }
}
